package com.ruoyi.common.exception;


import com.ruoyi.common.core.controller.BaseController;

/**
 * api请求错误码
 *
 * @author caiLinFeng
 * @date 2018年2月2日
 */

public class ErrorCodeEnum extends BaseController {

    public ErrorCodeEnum() {
    }

    public static enum CommonErr implements ErrorInfoBase {
        OK(200, "操作成功"),
        ERROR(500, "操作失败"),
        OUT_LOGIN(4001, "请重新登录");

        private Integer code;
        private String message;

        private CommonErr(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public Integer code() {
            return this.code;
        }

        public String message() {
            return this.message;
        }
    }
}
